package com.xyoto.community.service;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/11/26
 */
public interface DynamicCommentReplyTop5ServiceCache {

    /**
     * 根据评论id和回复id存储到缓存中
     * @param commentId
     * @param replyId
     */
    void saveCommentReplyCache(Integer commentId, Integer replyId);

    /**
     * 根据动态评论id删除缓存信息
     * @param commentId
     * @param replyId
     */
    void deleteCommentReplyCache(Integer commentId, Integer replyId);

    /**
     * 根据动态评论id查询前5条动态回复id
     * @param commentId
     * @return
     */
    List<Integer> getTop5ReplyIdByCommentIdFromCache(Integer commentId);

}
